//
//  WmcCreateTagStyleCell.swift
//  YPWatermarkCamera
//
//  Created by 赵新 on 2022/3/17.
//

import UIKit

class WmcTagStyleSelectCell: WmcBaseCollectionCell {

    lazy var effectView: UIVisualEffectView = {
        let blurEffect = UIBlurEffect(style: .light)
        let effectView = UIVisualEffectView(effect: blurEffect)
        effectView.layer.cornerRadius = 5
        effectView.layer.masksToBounds = true
        return effectView
    }()

    lazy var borderView: UIView = {
        let view = UIView()
        view.backgroundColor = .clear
        view.layer.cornerRadius = 5
        view.layer.masksToBounds = true
        view.layer.borderWidth = 2
        view.layer.borderColor = UIColor.white.cgColor
        return view
    }()

    override func makeUI() {
        backgroundColor = .clear

        addSubview(effectView)
        effectView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }

        addSubview(imageView)
        imageView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        
        addSubview(borderView)
        borderView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
    }
}
